<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        #wrap {
            width: 400px;
            height: 400px;
            border: 1px solid;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -200px;
            margin-top: -200px;
            /*让3D场景有近大远小的效果 不可继承属性 但他可以作用于后代元素的*/
            /*perspective: 100px;*/
        }
        #inner {
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -100px;
            margin-top: -100px;
            width: 200px;
            height: 200px;
            border: 2px solid #07daa5;
            border-radius: 50%;
            transition: 1s;
            transform: perspective(100px) rotateY(0deg);

        }
        #wrap:hover #inner {
            /*transform: rotateY(360deg);*/
            /*transform: translate3d(-50%,-50%,-100px);*/
            transform: perspective(100px) rotateY(360deg);
        }
    </style>
</head>
<body>
    <div id="wrap">
        <div id="inner">

        </div>
    </div>
</body>
</html>
